package chan.project.smartlawservice.commonService;

import chan.project.smartlawcommon.common.BaseResponse;
import chan.project.smartlawmodel.dto.lawyer.LawyerInfoAddRequest;
import chan.project.smartlawmodel.entity.CommonInfo;
import chan.project.smartlawmodel.entity.LawyerInfo;
import chan.project.smartlawservice.config.FeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "common",
        configuration = FeignInterceptor.class,
        path = "api/common")
public interface CommonInfoFeignClient {

    @PostMapping("/inner/register")
    boolean commonRegister(@RequestBody CommonInfo commonInfo);

    @GetMapping("/inner/getCommon")
    CommonInfo getCommonInfo(@RequestParam("userId") Long userId);
}
